from django.urls import path
from book import views

urlpatterns = [
    # path('books/',views.BookListView.as_view()),
    # path('books/<int:pk>/', views.BookDetailView.as_view()),
    # path('apibooks/',views.BooksListAPIView.as_view()),
    #
    # path('genericbooks/',views.BookListGenericView.as_view()),
    # path('genericbook/<int:pk>/',views.BookDetialGenericView.as_view()),
    #
    # path('mixinbooks/',views.BookListGenericMixinView.as_view()),
    # path('mixinbook/<int:pk>/',views.BookDetailGenericMixinView.as_view()),

]
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register('qwe',views.BookInfoModelViewSet,basename='qwe')
urlpatterns += router.urls


